package com.mnsq.book.mapper;

import com.mnsq.common.bean.condition.CommonBaseCondition;
import com.mnsq.common.bean.dto.UsersBookDto;
import com.mnsq.common.bean.entity.book.Book;
import com.mnsq.common.bean.vo.book.BookCondition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {

    List<Book> queryPage(BookCondition bookCondition);

    long queryTotal(BookCondition bookCondition);

    List<UsersBookDto> userReadPage(CommonBaseCondition baseCondition);

    List<UsersBookDto> findBookListPage(@Param("bookIds") List<Long> bookIds, @Param("bookCondition") BookCondition bookCondition);
}
